package models

import (
	"time"
)

type Giftcard struct {
	Id int64 `xorm:"oid"`

	Purchasedwithorderitemid int       `json:"PurchasedWithOrderItemId" xorm:"INTEGER"`
	Giftcardtypeid           int       `json:"GiftCardTypeId" xorm:"not null INTEGER"`
	Amount                   string    `json:"Amount" xorm:"not null NUMERIC"`
	Isgiftcardactivated      int       `json:"IsGiftCardActivated" xorm:"not null BIT(1)"`
	Giftcardcouponcode       string    `json:"GiftCardCouponCode" xorm:"VARCHAR"`
	Recipientname            string    `json:"RecipientName" xorm:"VARCHAR"`
	Recipientemail           string    `json:"RecipientEmail" xorm:"VARCHAR"`
	Sendername               string    `json:"SenderName" xorm:"VARCHAR"`
	Senderemail              string    `json:"SenderEmail" xorm:"VARCHAR"`
	Message                  string    `json:"Message" xorm:"VARCHAR"`
	Isrecipientnotified      int       `json:"IsRecipientNotified" xorm:"not null BIT(1)"`
	Createdonutc             time.Time `json:"CreatedOnUtc" xorm:"not null DATETIME"`
}
